home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / uni_cycl.swf / scripts / frame_1 / DoAction.as
Text File  |  2010-03-13  |  315b  |  10 lines

  1. totalBytes = Math.round(getBytesTotal() / 1024);
  2. loadedBytes = Math.round(getBytesLoaded() / 1024);
  3. percentDone = Math.round(loadedBytes / totalBytes * 100);
  4. percentone = totalBytes / 100;
  5. percent = Math.round(loadedBytes / percentone);
  6. if(_root._framesloaded >= _root._totalframes)
  7. {
  8.    gotoAndPlay(5);
  9. }
  10.